<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../../../print.css" type="text/css" media="print">
<meta content="MaterialObject3D,org.papervision3d.core.proto.MaterialObject3D,DEBUG_COLOR,DEFAULT_COLOR,baked,bitmap,fillAlpha,fillColor,heightOffset,id,interactive,invisible,lineAlpha,lineColor,lineThickness,maxU,maxV,name,objects,oneSide,opposite,smooth,tiled,widthOffset,DEBUG,DEFAULT,doubleSided,clone,copy,destroy,drawRT,drawTriangle,getObjectList,isUpdateable,registerObject,toString,unregisterObject,updateBitmap" name="keywords">
<title>org.papervision3d.core.proto.MaterialObject3D</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'MaterialObject3D - Papervision3D 官方文档';
				var baseRef = '../../../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">Papervision3D 官方文档</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../../all-classes.html')" href="../../../../package-summary.html">全部包</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../../all-classes.html')" href="../../../../class-summary.html">全部类</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../../index-list.html')" href="../../../../all-index-A.html">引索</a>&nbsp;|&nbsp;<a href="../../../../index.html?org/papervision3d/core/proto/MaterialObject3D.html&amp;org/papervision3d/core/proto/class-list.html" id="framesLink1">框架</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">无框架</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">类&nbsp;MaterialObject3D</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#propertySummary">属性</a>&nbsp;| <a href="#methodSummary">方法</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("类 MaterialObject3D"); titleBar_setSubNav(false,true,false,false,false,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">包</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">org.papervision3d.core.proto</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">类</td><td class="classSignature">public class MaterialObject3D</td>
</tr>
<tr>
<td class="classHeaderTableLabel">继承</td><td class="inheritanceList">MaterialObject3D <img class="inheritArrow" alt="继承" title="继承" src="../../../../images/inherit-arrow.gif"> flash.events.EventDispatcher</td>
</tr>
<tr>
<td class="classHeaderTableLabel">实现</td><td><a href="../render/draw/ITriangleDrawer.html">ITriangleDrawer</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">子类</td><td><a href="../../materials/special/LineMaterial.html">LineMaterial</a>, <a href="../../materials/special/ParticleMaterial.html">ParticleMaterial</a>, <a href="../material/TriangleMaterial.html">TriangleMaterial</a>, <a href="../../materials/special/VectorShapeMaterial.html">VectorShapeMaterial</a></td>
</tr>
</table>
<p></p>
 The MaterialObject3D class is the base class for all materials.
 <p/>MaterialObject3D 是所有材质的基本类
 
 Materials collects data about how objects appear when rendered.
 <p/>它收集决定物体如何被渲染出立体感和纹理的数据
 A material is data that you assign to objects or faces, so that they appear a certain way when rendered. Materials affect the line and fill colors.
 <p/>材质是赋予给对象或面片的数据，因此上材质决定了以上对象的渲染后的外观感觉，材质也影响线并且填充颜色
 Materials create greater realism in a scene. A material describes how an object reflects or transmits light.
 <p/>在场景中材质创造很大的真实感，它也描述对象是如何反射和传播光的
 You assign materials to individual objects or a selection of faces; a single object can contain different materials.
 <p/>你可以给不同的对象或面片的选集添加材质，也可以在一个对象上包含不同的材质
 MaterialObject3D is an abstract base class; therefore, you cannot call MaterialObject3D directly.
 <p>MaterialObject3D类是一个抽象基本类，所以，你不能直接调用它。
 <br>
</p>
 <hr>
</div>
<a name="propertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">公共属性</div>
<table id="summaryTableProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">属性</th><th colspan="2">定义方</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#baked">baked</a> : Boolean = false<div class="summaryTableDescription">
  <p>A Boolean value that determines whether the texture is cached, i.e.</p>
  <p>决定是否纹理缓存</p>
</div>
</td><td class="summaryTableOwnerCol">MaterialObject3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#bitmap">bitmap</a> : BitmapData<div class="summaryTableDescription">
  <p>A transparent or opaque BitmapData texture.</p>
  <p>透明或不透明的BitmapData纹理</p>
</div>
</td><td class="summaryTableOwnerCol">MaterialObject3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#DEBUG">DEBUG</a> : <a href="../proto/MaterialObject3D.html">MaterialObject3D</a>
<div class="summaryTableDescription">[静态][只读]</div>
</td><td class="summaryTableOwnerCol">MaterialObject3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#DEBUG_COLOR">DEBUG_COLOR</a> : int = 0xFF00FF<div class="summaryTableDescription">
  <p>[静态]
    Color used for DEBUG material.</p>
  <p>用于DEBUG材质的颜色值</p>
</div>
</td><td class="summaryTableOwnerCol">MaterialObject3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#DEFAULT">DEFAULT</a> : <a href="../proto/MaterialObject3D.html">MaterialObject3D</a>
<div class="summaryTableDescription">
  <p>[静态][只读]
    Returns a MaterialObject3D object with the default magenta wireframe values.</p>
  <p>返回一个外框线为默认品红色的MaterialObject3D对象</p>
</div>
</td><td class="summaryTableOwnerCol">MaterialObject3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#DEFAULT_COLOR">DEFAULT_COLOR</a> : int = 0x000000<div class="summaryTableDescription">[静态]
  Color used for DEFAULT material.用于DEFAULT材质的颜色值</div></td><td class="summaryTableOwnerCol">MaterialObject3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#doubleSided">doubleSided</a> : Boolean<div class="summaryTableDescription">
  <p>A Boolean value that indicates whether the faces are double sided.</p>
  <p>面片是否双面</p>
</div>
</td><td class="summaryTableOwnerCol">MaterialObject3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#fillAlpha">fillAlpha</a> : Number = 0<div class="summaryTableDescription">
  <p>An 8-bit alpha value fill the faces with.</p>
  <p>填充面片的8位alpha值</p>
</div>
</td><td class="summaryTableOwnerCol">MaterialObject3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#fillColor">fillColor</a> : Number<div class="summaryTableDescription">
  <p>A RGB color value to fill the faces with.</p>
  <p>填充面片的RGB颜色值</p>
</div>
</td><td class="summaryTableOwnerCol">MaterialObject3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#heightOffset">heightOffset</a> : Number = 0<div class="summaryTableDescription">
  <p>Holds the original size of the bitmap before it was resized by Automip mapping </p>
  <p>在位图被Automip mapping方法改变尺寸之前保持原始尺寸 </p>
</div>
</td><td class="summaryTableOwnerCol">MaterialObject3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#id">id</a> : Number<div class="summaryTableDescription">
  [包内使用] [只读] Unique id of this instance.实例的唯一id</div>
</td><td class="summaryTableOwnerCol">MaterialObject3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#interactive">interactive</a> : Boolean = false<div class="summaryTableDescription">
   <p>Defines if this material will be interactive </p>
   <p>定义材质是否可以交互</p>
</div>
</td><td class="summaryTableOwnerCol">MaterialObject3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#invisible">invisible</a> : Boolean = false<div class="summaryTableDescription">
  <p>A Boolean value that indicates whether the faces are invisible (not drawn).</p>
  <p>面片是否可见</p>
</div>
</td><td class="summaryTableOwnerCol">MaterialObject3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#lineAlpha">lineAlpha</a> : Number = 0<div class="summaryTableDescription">
  <p>An 8-bit alpha value for the faces outline.</p>
  <p>用于面片外框线的8位alpha值</p>
</div>
</td><td class="summaryTableOwnerCol">MaterialObject3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#lineColor">lineColor</a> : Number<div class="summaryTableDescription">
  <p>A RGB color value to draw the faces outline.</p>
  <p>用于绘制面片外框线的RGB颜色值</p>
</div>
</td><td class="summaryTableOwnerCol">MaterialObject3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#lineThickness">lineThickness</a> : Number = 1<div class="summaryTableDescription">
  <p>An value for the thickness of the faces line.</p>
  <p>面片线框的粗细值</p>
</div>
</td><td class="summaryTableOwnerCol">MaterialObject3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#maxU">maxU</a> : Number<div class="summaryTableDescription">
   Internal use
   内部使用</div>
</td><td class="summaryTableOwnerCol">MaterialObject3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#maxV">maxV</a> : Number<div class="summaryTableDescription">
   Internal use
   内部使用</div>
</td><td class="summaryTableOwnerCol">MaterialObject3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#name">name</a> : String<div class="summaryTableDescription">
  The name of the material.材质名称</div>
</td><td class="summaryTableOwnerCol">MaterialObject3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#oneSide">oneSide</a> : Boolean = true<div class="summaryTableDescription">
  A Boolean value that indicates whether the faces are single sided.是否单面</div>
</td><td class="summaryTableOwnerCol">MaterialObject3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#opposite">opposite</a> : Boolean = false<div class="summaryTableDescription">
  A Boolean value that indicates whether the face is flipped.面片是否翻转</div>
</td><td class="summaryTableOwnerCol">MaterialObject3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#smooth">smooth</a> : Boolean = false<div class="summaryTableDescription">
  <p>A Boolean value that determines whether the BitmapData texture is smoothed when rendered.</p>
  <p>BitmapData纹理是否在渲染时平滑</p>
</div>
</td><td class="summaryTableOwnerCol">MaterialObject3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#tiled">tiled</a> : Boolean = false<div class="summaryTableDescription">
  <p>A Boolean value that determines whether the texture is tiled when rendered.</p>
  <p>是否在渲染时平铺叠加纹理（对比联想下window桌面的tile平铺选项）</p>
</div>
</td><td class="summaryTableOwnerCol">MaterialObject3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#widthOffset">widthOffset</a> : Number = 0<div class="summaryTableDescription">
  <p>Holds the original size of the bitmap before it was resized by Automip mapping </p>
  <p>在bitmap被Automip mapping改变尺寸之前保持原始尺寸</p>
</div>
</td><td class="summaryTableOwnerCol">MaterialObject3D</td>
</tr>
</table>
</div>
<a name="protectedPropertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">保护属性</div>
<table id="summaryTableProtectedProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">属性</th><th colspan="2">定义方</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#objects">objects</a> : Dictionary<div class="summaryTableDescription">
   <p>Inventory of registered objects </p>
   <p>已注册对象的详细目录</p>
</div>
</td><td class="summaryTableOwnerCol">MaterialObject3D</td>
</tr>
</table>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">公共方法</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">方法</th><th colspan="2">定义方</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#MaterialObject3D()">MaterialObject3D</a>()</div>
<div class="summaryTableDescription">
  <p>Creates a new MaterialObject3D object.</p>
  <p>创建新的MaterialObject3D对象</p>
</div>
</td><td class="summaryTableOwnerCol">MaterialObject3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#clone()">clone</a>():<a href="../proto/MaterialObject3D.html">MaterialObject3D</a>
</div>
<div class="summaryTableDescription">
  <p>Creates a copy of the material.</p>
  <p>材质的克隆</p>
</div>
</td><td class="summaryTableOwnerCol">MaterialObject3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#copy()">copy</a>(material:<a href="MaterialObject3D.html">MaterialObject3D</a>):void</div>
<div class="summaryTableDescription">
  <p>Copies the properties of a material.</p>
  <p>材质属性的克隆</p>
</div>
</td><td class="summaryTableOwnerCol">MaterialObject3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#destroy()">destroy</a>():void</div>
<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">MaterialObject3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#drawRT()">drawRT</a>(rt:<a href="../render/command/RenderTriangle.html">RenderTriangle</a>, graphics:Graphics, renderSessionData:<a href="../render/data/RenderSessionData.html">RenderSessionData</a>):void</div>
<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">MaterialObject3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#drawTriangle()">drawTriangle</a>(tri:<a href="../render/command/RenderTriangle.html">RenderTriangle</a>, graphics:Graphics, renderSessionData:<a href="../render/data/RenderSessionData.html">RenderSessionData</a>, altBitmap:BitmapData = null, altUV:Matrix = null):void</div>
<div class="summaryTableDescription">
   <p>Draws the triangle to screen.</p>
   <p>在屏幕上绘制三角面</p>
</div>
</td><td class="summaryTableOwnerCol">MaterialObject3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getObjectList()">getObjectList</a>():Dictionary</div>
<div class="summaryTableDescription">
  <p>Returns a list of <code>DisplayObject3D</code> objects registered with the material.</p>
  <p>返回已经注册到此材质上的<code>DisplayObject3D</code>对象的列表</p>
</div>
</td><td class="summaryTableOwnerCol">MaterialObject3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#isUpdateable()">isUpdateable</a>():Boolean</div>
<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">MaterialObject3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#registerObject()">registerObject</a>(displayObject3D:<a href="../../objects/DisplayObject3D.html">DisplayObject3D</a>):void</div>
<div class="summaryTableDescription">
   <p>Registers the <code>DisplayObject3D</code>
   </p>
   <p>注册<code>DisplayObject3D</code>对象</p>
</div>
</td><td class="summaryTableOwnerCol">MaterialObject3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#toString()">toString</a>():String</div>
<div class="summaryTableDescription">
  <p>Returns a string value representing the material properties.</p>
  <p>返回描述材质属性的字符串值</p>
</div>
</td><td class="summaryTableOwnerCol">MaterialObject3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#unregisterObject()">unregisterObject</a>(displayObject3D:<a href="../../objects/DisplayObject3D.html">DisplayObject3D</a>):void</div>
<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">MaterialObject3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#updateBitmap()">updateBitmap</a>():void</div>
<div class="summaryTableDescription">
  <p>Updates the BitmapData bitmap from the given texture.</p>
  <p>用指定的纹理更新BitmapData位图</p>
</div>
</td><td class="summaryTableOwnerCol">MaterialObject3D</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="propertyDetail"></a>
<div class="detailSectionHeader">属性详细信息</div>
<a name="baked"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">baked</td><td class="detailHeaderType">属性</td>
</tr>
</table>
<div class="detailBody">
<code>public var baked:Boolean = false</code><p>
  A Boolean value that determines whether the texture is cached, i.e. not updated before being rendered. Defaults to false.
  </p>
<p>决定纹理是否缓存，在渲染时不能被更新，缺省为false</p>
</div>
<a name="bitmap"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">bitmap</td><td class="detailHeaderType">属性</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var bitmap:BitmapData</code><p>
  A transparent or opaque BitmapData texture.
  </p>
<p>透明或不透明的BitmapData纹理</p>
</div>
<a name="DEBUG"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">DEBUG</td><td class="detailHeaderType">属性</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>DEBUG:<a href="../proto/MaterialObject3D.html">MaterialObject3D</a></code>&nbsp;&nbsp;[只读]<p></p><span class="label">实现</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public static function get DEBUG():<a href="../proto/MaterialObject3D.html">MaterialObject3D</a></code>
<br>
</div>
<a name="DEBUG_COLOR"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">DEBUG_COLOR</td><td class="detailHeaderType">属性</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static var DEBUG_COLOR:int = 0xFF00FF</code><p>
  Color used for DEBUG material.
  </p></div>
<a name="DEFAULT"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">DEFAULT</td><td class="detailHeaderType">属性</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>DEFAULT:<a href="../proto/MaterialObject3D.html">MaterialObject3D</a></code>&nbsp;&nbsp;[只读]<p>
  Returns a MaterialObject3D object with the default magenta wireframe values.
    </p><span class="label">实现</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public static function get DEFAULT():<a href="../proto/MaterialObject3D.html">MaterialObject3D</a></code>
<br>
</div>
<a name="DEFAULT_COLOR"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">DEFAULT_COLOR</td><td class="detailHeaderType">属性</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static var DEFAULT_COLOR:int = 0x000000</code><p>
  Color used for DEFAULT material.
  </p></div>
<a name="doubleSided"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">doubleSided</td><td class="detailHeaderType">属性</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>doubleSided:Boolean</code>&nbsp;&nbsp;[读写]<p>
  A Boolean value that indicates whether the faces are double sided.
  </p><span class="label">实现</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get doubleSided():Boolean</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set doubleSided(value:Boolean):void</code>
<br>
</div>
<a name="fillAlpha"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">fillAlpha</td><td class="detailHeaderType">属性</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var fillAlpha:Number = 0</code><p>
  An 8-bit alpha value fill the faces with. If this value is zero and no texture is provided or is undefined, a fill is not created.
  </p></div>
<a name="fillColor"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">fillColor</td><td class="detailHeaderType">属性</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var fillColor:Number</code><p>
  A RGB color value to fill the faces with. Only used if no texture is provided.
  </p></div>
<a name="heightOffset"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">heightOffset</td><td class="detailHeaderType">属性</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var heightOffset:Number = 0</code><p>
  Holds the original size of the bitmap before it was resized by Automip mapping
  </p></div>
<a name="id"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">id</td><td class="detailHeaderType">属性</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var id:Number</code><p>
  [包内使用] [只读] Unique id of this instance.
  </p></div>
<a name="interactive"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">interactive</td><td class="detailHeaderType">属性</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var interactive:Boolean = false</code><p>
   Defines if this material will be interactive
   </p></div>
<a name="invisible"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">invisible</td><td class="detailHeaderType">属性</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var invisible:Boolean = false</code><p>
  A Boolean value that indicates whether the faces are invisible (not drawn).
  </p></div>
<a name="lineAlpha"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">lineAlpha</td><td class="detailHeaderType">属性</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var lineAlpha:Number = 0</code><p>
  An 8-bit alpha value for the faces outline. If zero, no outline is drawn.
  </p></div>
<a name="lineColor"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">lineColor</td><td class="detailHeaderType">属性</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var lineColor:Number</code><p>
  A RGB color value to draw the faces outline.
  </p></div>
<a name="lineThickness"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">lineThickness</td><td class="detailHeaderType">属性</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var lineThickness:Number = 1</code><p>
  An value for the thickness of the faces line.
  </p></div>
<a name="maxU"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">maxU</td><td class="detailHeaderType">属性</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var maxU:Number</code><p>
   Internal use
   </p></div>
<a name="maxV"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">maxV</td><td class="detailHeaderType">属性</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var maxV:Number</code><p>
   Internal use
   </p></div>
<a name="name"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">name</td><td class="detailHeaderType">属性</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var name:String</code><p>
  The name of the material.
  </p></div>
<a name="objects"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">objects</td><td class="detailHeaderType">属性</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected var objects:Dictionary</code><p>
   Inventory of registered objects
   </p></div>
<a name="oneSide"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">oneSide</td><td class="detailHeaderType">属性</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var oneSide:Boolean = true</code><p>
  A Boolean value that indicates whether the faces are single sided. It has preference over doubleSided.
  </p></div>
<a name="opposite"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">opposite</td><td class="detailHeaderType">属性</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var opposite:Boolean = false</code><p>
  A Boolean value that indicates whether the face is flipped. Only used if doubleSided or not singeSided.
  </p></div>
<a name="smooth"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">smooth</td><td class="detailHeaderType">属性</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var smooth:Boolean = false</code><p>
  A Boolean value that determines whether the BitmapData texture is smoothed when rendered.
  </p></div>
<a name="tiled"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">tiled</td><td class="detailHeaderType">属性</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var tiled:Boolean = false</code><p>
  A Boolean value that determines whether the texture is tiled when rendered. Defaults to false.
  </p></div>
<a name="widthOffset"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">widthOffset</td><td class="detailHeaderType">属性</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var widthOffset:Number = 0</code><p>
  Holds the original size of the bitmap before it was resized by Automip mapping
  </p></div>
<a name="constructorDetail"></a>
<div class="detailSectionHeader">构造函数详细信息</div>
<a name="MaterialObject3D()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">MaterialObject3D</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">构造函数</td>
</tr>
</table>
<div class="detailBody">
<code>public function MaterialObject3D()</code><p>
  Creates a new MaterialObject3D object.
    </p></div>
<a name="methodDetail"></a>
<div class="detailSectionHeader">方法详细信息</div>
<a name="clone()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">clone</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">方法</td>
</tr>
</table>
<div class="detailBody">
<code>public function clone():<a href="../proto/MaterialObject3D.html">MaterialObject3D</a></code><p>
  Creates a copy of the material.
    </p><p></p>
<span class="label">返回</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../proto/MaterialObject3D.html">MaterialObject3D</a></code> &mdash; 
                        A newly created material that contains the same properties.
  
                        
                     </td>
</tr>
</table>
</div>
<a name="copy()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">copy</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">方法</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function copy(material:<a href="MaterialObject3D.html">MaterialObject3D</a>):void</code><p>
  Copies the properties of a material.
    </p><span class="label">参数</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">material</span>:<a href="MaterialObject3D.html">MaterialObject3D</a></code> &mdash; Material to copy from.
  </td>
</tr>
</table>
</div>
<a name="destroy()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">destroy</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">方法</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function destroy():void</code>
</div>
<a name="drawRT()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">drawRT</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">方法</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function drawRT(rt:<a href="../render/command/RenderTriangle.html">RenderTriangle</a>, graphics:Graphics, renderSessionData:<a href="../render/data/RenderSessionData.html">RenderSessionData</a>):void</code><p></p><span class="label">参数</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">rt</span>:<a href="../render/command/RenderTriangle.html">RenderTriangle</a></code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">graphics</span>:Graphics</code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">renderSessionData</span>:<a href="../render/data/RenderSessionData.html">RenderSessionData</a></code></td>
</tr>
</table>
</div>
<a name="drawTriangle()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">drawTriangle</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">方法</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function drawTriangle(tri:<a href="../render/command/RenderTriangle.html">RenderTriangle</a>, graphics:Graphics, renderSessionData:<a href="../render/data/RenderSessionData.html">RenderSessionData</a>, altBitmap:BitmapData = null, altUV:Matrix = null):void</code><p>
   Draws the triangle to screen.
   </p><span class="label">参数</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">tri</span>:<a href="../render/command/RenderTriangle.html">RenderTriangle</a></code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">graphics</span>:Graphics</code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">renderSessionData</span>:<a href="../render/data/RenderSessionData.html">RenderSessionData</a></code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">altBitmap</span>:BitmapData</code> (default = <code>null</code>)<code></code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">altUV</span>:Matrix</code> (default = <code>null</code>)<code></code></td>
</tr>
</table>
</div>
<a name="getObjectList()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getObjectList</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">方法</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function getObjectList():Dictionary</code><p>
  Returns a list of <code>DisplayObject3D</code> objects registered with the material.
  </p><p></p>
<span class="label">返回</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>Dictionary</code></td>
</tr>
</table>
</div>
<a name="isUpdateable()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">isUpdateable</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">方法</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function isUpdateable():Boolean</code>
<p></p>
<span class="label">返回</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>Boolean</code></td>
</tr>
</table>
</div>
<a name="registerObject()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">registerObject</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">方法</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function registerObject(displayObject3D:<a href="../../objects/DisplayObject3D.html">DisplayObject3D</a>):void</code><p>
   Registers the <code>DisplayObject3D</code>
   </p><span class="label">参数</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">displayObject3D</span>:<a href="../../objects/DisplayObject3D.html">DisplayObject3D</a></code></td>
</tr>
</table>
</div>
<a name="toString()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">toString</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">方法</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public override function toString():String</code><p>
  Returns a string value representing the material properties.
    </p><p></p>
<span class="label">返回</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>String</code> &mdash; A string.
  </td>
</tr>
</table>
</div>
<a name="unregisterObject()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">unregisterObject</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">方法</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function unregisterObject(displayObject3D:<a href="../../objects/DisplayObject3D.html">DisplayObject3D</a>):void</code><p></p><span class="label">参数</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">displayObject3D</span>:<a href="../../objects/DisplayObject3D.html">DisplayObject3D</a></code></td>
</tr>
</table>
</div>
<a name="updateBitmap()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">updateBitmap</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">方法</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function updateBitmap():void</code><p>
  Updates the BitmapData bitmap from the given texture.
    Draws the current MovieClip image onto bitmap.
  </p></div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright">http://blog.papervision3d.org</center>
</div>
</body>
</html>
<!--http://blog.papervision3d.org-->
